package com.bondqin.sakila.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.bondqin.sakila.entity.Film;
import com.bondqin.sakila.entity.Inventory;

@Repository
public interface InventoryDao extends JpaRepository<Inventory, Integer>, JpaSpecificationExecutor<Inventory> {

	public Page<Inventory> findByFilm(Film film, Pageable pageable);
}
